#include "numberhandler.h"

#include <QDebug>

NumberHandler::NumberHandler(QObject *parent) : QObject(parent)
{
    timer = new QTimer(parent);
    connect(timer, &QTimer::timeout, this, &NumberHandler::handleTimeOut);
    number = 0;
}

void NumberHandler::startTimer(int timeout)
{
    timer->start(timeout);
}

void NumberHandler::handleTimeOut()
{
    number = number + 20;
    emit numChanged();
}
